public class ZhaiZhiJie05
{
    public static void main(String[] args)
    {
            
    }
}

class A2
{
    public void fun1()
    {
        System.out.println("A2->fun1");
    }
    public void fun2()
    {
        this.fun1();
    }
}

class B2 extends A2
{
    public void fun1()
    {
        System.out.println("B2->fun1");
    }
    public void fun3()
    {
        System.out.println("b->fun3");
    }
}